using System;
using System.BusinessObjects.Data;

namespace Blazing.BusinessObjects.Locations
{
    [Serializable]
	public class State : DataObject<State>
	{

		public virtual int ID
		{
			get
			{
				return GetValue<int>("ID");
			}
			set
			{
				BeginEdit();
				SetValue("ID", value);
			}
		}

        public virtual string Name
		{
			get
			{
				return GetValue<string>("Name");
			}
			set
			{
				BeginEdit();
				SetValue("Name", value);
			}
		}

        public virtual string Abbr
		{
			get
			{
				return GetValue<string>("Abbr");
			}
			set
			{
				BeginEdit();
				SetValue("Abbr", value);
			}
		}

        [NonSerialized]
        Country _country;
        public virtual Country Country
        {
            get
            {
                return _country;
            }
            set
            {
                BeginEdit();
                _country = value;
            }
        }

        public virtual DateTime RowStamp
		{
			get
			{
				return GetValue<DateTime>("RowStamp");
			}
			set
			{
				SetValue("RowStamp", value);
			}
		}
	}
}
